//
//  FSUser.m
//  fanshu
//
//  Created by jklin on 16/4/7.
//  Copyright © 2016年 FS. All rights reserved.
//

#import "FSUser.h"

@implementation FSUser
-(void)encodeWithCoder:(NSCoder *)aCoder{
    [aCoder encodeInteger:self.numberOfMarkArticle  forKey:@"numberOfMarkArticle"];
    [aCoder encodeInteger:self.numberOfLickArticle forKey:@"numberOfLickArticle"];
    [aCoder encodeInteger:self.numberOfPublicArticle forKey:@"numberOfPublicArticle"];
    [aCoder encodeInteger:self.numberOfSecretArticle forKey:@"numberOfSecretArticle"];
    
    [aCoder encodeObject:self.URLOfLickArticle forKey:@"URLOfLickArticle"];
    [aCoder encodeObject:self.URLOfMarkArticle forKey:@"URLOfMarkArticle"];
    [aCoder encodeObject:self.URLOfPublicArticle forKey:@"URLOfPublicArticle"];
    
    [aCoder encodeObject:self.URLOfTopik forKey:@"URLOfTopik"];
    [aCoder encodeObject:self.URLOfSecretArticle forKey:@"URLOfSecretArticle"];
    

}
-(instancetype)initWithCoder:(NSCoder *)aDecoder{
    if (self = [super init]) {
        self.numberOfLickArticle = [aDecoder decodeIntegerForKey:@"numberOfLickArticle"];
        self.numberOfMarkArticle = [aDecoder decodeIntegerForKey:@"numberOfMarkArticle"];
        self.numberOfPublicArticle = [aDecoder decodeIntegerForKey:@"numberOfPublicArticle"];
        self.numberOfSecretArticle = [aDecoder decodeIntegerForKey:@"numberOfSecretArticle"];
        
        self.URLOfLickArticle = [aDecoder decodeObjectForKey:@"URLOfLickArticle"];
        self.URLOfMarkArticle = [aDecoder decodeObjectForKey:@"URLOfMarkArticle"];
        self.URLOfPublicArticle = [aDecoder decodeObjectForKey:@"URLOfPublicArticle"];
        self.URLOfSecretArticle = [aDecoder decodeObjectForKey:@"URLOfSecretArticle"];
        self.URLOfTopik = [aDecoder decodeObjectForKey:@"URLOfTopik"];
    }
    return self;
}
@end
